<?php if (!defined('THINK_PATH')) exit();?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>系统管理中心</title>
    <link href="__CSS_ADMIN_PATH__reset.css" rel="stylesheet" type="text/css" />
    <link href="__CSS_ADMIN_PATH__zh-cn-system.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles1.css" title="styles1" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles2.css" title="styles2" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles3.css" title="styles3" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles4.css" title="styles4" media="screen" />

    <link href="__CSS_ADMIN_PATH__dialog.css" rel="stylesheet" type="text/css" />
    <link href="__CSS_ADMIN_PATH__table_form.css" rel="stylesheet" type="text/css">
    <script src="__JS_PATH__jquery-1.8.3.js" type="text/javascript"></script>
    <script src="__JS_PATH__jquery-ui.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src="__JS_PATH__dialog.js"></script>

    <script src="__JS_ADMIN_PATH__wysiwyg.js" type="text/javascript"></script>
    <script src="__JS_ADMIN_PATH__functions.js" type="text/javascript"></script>
    <!--<script src="/public/index/js/lang.js" type="text/javascript"></script>-->

    <script src="__JS_PATH__Validform_v5.3.2.js" type="text/javascript"></script>

    <script type="text/javascript">
        var isIE = (document.all && window.ActiveXObject && !window.opera) ? true : false;
        function Dd(i) {return document.getElementById(i);}
        function Eh(t) {
            var t = t ? t : 'select';
            if(isIE) {
                var arVersion = navigator.appVersion.split("MSIE"); var IEversion = parseFloat(arVersion[1]);
                if(IEversion >= 7 || IEversion < 5) return;
                var ss = document.body.getElementsByTagName(t);
                for(var i=0;i<ss.length;i++) {ss[i].style.visibility = 'hidden';}
            }
        }
        function Es(t) {
            var t = t ? t : 'select';
            if(isIE) {
                var arVersion = navigator.appVersion.split("MSIE"); var IEversion = parseFloat(arVersion[1]);
                if(IEversion >= 7 || IEversion < 5) return;
                var ss = document.body.getElementsByTagName(t);
                for(var i=0;i<ss.length;i++) {ss[i].style.visibility = 'visible';}
            }
        }
    </script>
</head>
<body>


<div class="pad-10">
  <div class="content-menu ib-a blue line-x">修改菜单</div>
  <div class="col-auto">
    <div class="col-1">
      <div class="content pad-6">
		 	
			<form method="post" action="__APP_PATH__index.php?g=Admin&m=Node&a=edit"><!-- Form -->
          <table width="100%" cellspacing="0" class="table_form">
				<!-- Fieldset -->
<tbody>	
					<tr>
						<th style="width: 120px;">上级菜单: </th>
                        <td style="width: 120px;">
 						<select name="parentid" id="parentid"  datatype="n" nullmsg="选择上级菜单！" errormsg="选择上级菜单！">
				       	 	<option value="0">做为一级菜单</option>
							<?php echo ($select_categorys); ?>
						</select>
                    </td>
                        <td>
                            <div class="Validform_checktip">选择上级菜单</div>
                        </td>
                 </tr>
					<tr>
						<th>级别: </th><td>
 						<select name="level"   datatype="n" nullmsg="选择级别！" errormsg="选择级别！">
				       	 	<option value="1" <?php if($editModule['level']==1): ?>selected="selected"<?php endif; ?> >应用</option>
				       	 	<option value="2" <?php if($editModule['level']==2): ?>selected="selected"<?php endif; ?> >控制器</option>
							<option value="3" <?php if($editModule['level']==3): ?>selected="selected"<?php endif; ?> >方法</option>
						</select>
                    </td>
                        <td>
                            <div class="Validform_checktip">选择级别</div>
                        </td>
                 </tr>
					<tr>
						<th>中文名称: </th><td>
 						<input class="mediumfield" id="title" name="title" type="text"  datatype="*" nullmsg="输入中文名称！" errormsg="输入中文名称！" value="<?php echo ($editModule["title"]); ?>" />
                       </td>
                        <td>
                            <div class="Validform_checktip">输入中文名称</div>
                        </td>
				</td>
                 </tr>
                    <tr>
                        <th>分组名: </th><td>
                        <input class="mediumfield" id="Qg" name="Qg" type="text" value="<?php echo ($editModule["g"]); ?>" />
                    </td>
                    </tr>

                    <tr>
                        <th>文件名: </th><td>
                        <input class="mediumfield" id="Qm" name="Qm" type="text" value="<?php echo ($editModule["m"]); ?>" />
                    </td>
                    </tr>

                    <tr>
                        <th>方法名: </th><td>
                        <input class="mediumfield" id="Qa" name="Qa" type="text" value="<?php echo ($editModule["a"]); ?>" />
                    </td>
                    </tr>

					<tr>
						<th>对应的操作名称: </th>
						<td>
 						<input class="mediumfield" id="name" name="name" type="text" datatype='zimu' nullmsg="不能为空！"errormsg="输入对应的操作名称(字母)！" value="<?php echo ($editModule["name"]); ?>" />
                        </td>
                        <td>
                            <div class="Validform_checktip">操作名称（只能是字母+数字+下划线:2-30长度）</div>
                        </td>
					</tr>
                    <tr>
                        <th>附加参数: </th><td>
                        <input class="mediumfield" id="data" name="data" type="text" value="<?php echo ($editModule["data"]); ?>" />
                    </td>
                    </tr>
                    <!--
                    <tr>
                        <th>url链接: </th><td>
                        <input class="mediumfield" style="width: 200px;" id="url" name="url" value="<?php echo ($editModule["url"]); ?>">
                        <span style="color: red;">实例：1,/admin.php/Content/collect_clist?modelid=8 2,?m=admin&c=plugin&a=init</span>
                    </td>
                    </tr>
                    -->
					<tr>
						<th>是否展示: </th><td>
 						<input name="display" value="1" <?php if($editModule['status']): ?>checked="checked"<?php endif; ?> type="radio"> 是<input name="display" <?php if(!$editModule['status']): ?>checked="checked"<?php endif; ?> value="0" type="radio"> 否
					</td>
					</tr>

                    <tr>
                        <th>类型: </th><td>
                        <input name="type" value="0"  <?php if(($editModule['type']==0)): ?>checked="checked"<?php endif; ?>  type="radio"> 导航<input name="type" value="1" <?php if(($editModule['type']==1)): ?>checked="checked"<?php endif; ?>type="radio"> 操作
                    </td>
                    </tr>

                    <tr>
                        <th>排序: </th><td>
                        <input class="mediumfield" id="sort" name="sort" type="text" value="<?php echo ($editModule["sort"]); ?>" />
                    </td>
                    </tr>
                    <!--
					<tr>
					<th>菜单等级：</th>
						<td>
						<select name="location">
							<option value="<?php echo ($editModule["location"]); ?>"><?php echo ($editModule["location"]); ?>级标题</option>
							<option value="1">1级标题</option>
							<option value="2">2级标题</option>
							<option value="3">3级标题</option>
							<option value="4">4级标题</option>
						</select>
						<span style="color: red;">1级是头部标题，2级是左侧大标题，3级左侧小标题，4级为右侧内置方法</span>
						</td>
					</tr>

					<tr>
						<th>描述: </th><td>
						<textarea  name="moduledesc" style="width:450px;height:86px;"><?php echo ($editModule["remark"]); ?></textarea>
 					</td>
                    </tr>
                                    -->
                     <tr>
					 <td></td>
					 <td>

						<input name="id" type="hidden" value="<?php echo ($editModule["id"]); ?>" />
						<input class="button" name="dosubmit" type="submit" value="提交" />
				</td>
              </tr>               
			</tbody>
          </table>
        </form>
      </div>
    </div>
  </div>
</div>

	</div>
	<script src="__JS__/checkadmin.js" type="text/javascript"></script>